#include "Textures/GlTexture.h"
#include "../../GL/libExt/libExt.h"
namespace gname
{
	void GLTexture::CreateTexture ()  
	{
		
		glGenTextures(1, &id);
      
		
	}

	void GLTexture::RealizeTexture()  
	{
		if(id)
		{
		glDeleteTextures(1,&id);
		}
	    id = 0;
	}

	void GLTexture::RealizeData()
	{
		
		if ( data != NULL )
		{
			delete  ( data );
		}
		data = 0;
	}

	bool GLTexture::Alloc()  
	{
		
		data = new char(width*height);
		return true;
	}
	 
	
}